﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FAQFrameworks;
using DTOFrameworks;
using FooFun.DataElements.Dtos;

namespace FooFun.Web.Controls
{
    public class CurrentUser : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            Guid userId = FAQContext.Current.User.AccountId;

            UserManager userManager = new UserManager();
            IDataElement de = userManager.GetElement(userId);

            base.DataElement = de;
        }
    }
}
